PREVIEW: Today you will create a game using collision events!

  • Click Run and use the arrow keys to rescue the astronauts, but be careful to avoid the UFOs!
  • Look at line 42. This creates the collision event. The collision event contains conditionals that control what happens if you hit an astronaut or a ufo! Which line of code gets the information for the conditionals?
  • Click Submit and Next to start the lesson.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)